package test;


import java.util.*;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        /*int[] ints = Arrays.copyOf(new int[]{1, 2, 3, 4}, 1);
        for (int anInt : ints) {
            System.out.println(anInt);
        }*/

        /*Collection<Integer> a = new ArrayList<>();
        a.add(1);
        a.add(2);
        a.add(3);
        a.add(4);
        Collection<Integer> b = new ArrayList<>();
        b.add(2);
        b.add(3);
        boolean b1 = a.retainAll(b);
        System.out.println(b1);
        for (Integer integer : a) {
            System.out.println(integer);
        }
        System.out.println("------------");
        for (Integer integer : b) {
            System.out.println(integer);
        }
        System.out.println("dsfsdfds");
        Integer[] integers = new Integer[1];
        Integer[] integers1 = b.toArray(integers);
        for (Integer integer : integers) {
            System.out.println(integer);
        }
        System.out.println("--------zz");
        for (Integer integer : integers1) {
            System.out.println(integer);
        }*/

        /*Vector<Integer> list = new Vector<>();
        list.add(1);
        list.add(2);
        list.add(4);
        list.add(3);
        Enumeration<Integer> elements = list.elements();
        while (elements.hasMoreElements()) {
            System.out.println(elements.nextElement());
        }
        String string = new String("01234");
        System.out.println(string.substring(1, 2));*/
        int cnt = 0;
        long begin = System.currentTimeMillis();
        long end = begin + 1000;
        while (true) {
            if (System.currentTimeMillis() > end) {
                break;
            }
            cnt++;
        }
        System.out.println(cnt);

    }


}
